﻿using System.ComponentModel;

namespace ThresholdAssistant.Enums
{
    /// <summary>
    /// 错误消息类型定义枚举
    /// </summary>
    public enum ErrorTypeEnum
    {
        /// <summary>
        /// 业务处理失败
        /// </summary>
        [Description("业务处理失败")]
        BusinessFailed = -1,

        /// <summary>
        ///  成功
        /// </summary>
        [Description("SUCCESS")]
        SUCCESS = 1,

        /// <summary>
        ///  程序运行异常
        /// </summary>
        [Description("未知错误")]
        Application_Error = 100000,

        /// <summary>
        ///  未知异常
        /// </summary>
        [Description("未知异常")]
        UnknownError = 100001,

        /// <summary>
        ///  参数异常
        /// </summary>
        [Description("参数错误")]
        RequiredParam = 100002,

        /// <summary>
        ///  签名错误
        /// </summary>
        [Description("签名错误")]
        SignError = 100003,

        /// <summary>
        ///  API请求失败
        /// </summary>
        [Description("API请求失败")]
        ReqApiError = 100004,

        /// <summary>
        /// 请输入商户号
        /// </summary>
        [Description("请输入商户号")]
        MerchantRequired = 100005,

        /// <summary>
        /// 商户状态未启用，暂无权限
        /// </summary>
        [Description("商户状态未启用，暂无权限")]
        MerchantStatusNoEnable = 100006,

        /// <summary>
        /// 数组创建数不能超过5个
        /// </summary>
        [Description("数组创建数不能超过5个")]
        SiteOutsideMaxCount = 100007,
    }
}